<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>超级管理员登录</title>
<link rel="stylesheet" type="text/css" href="__STATIC__/assets/css/style.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/assets/css/body.css"/> 

<script type="text/javascript">
    function checkuser(){
        //获取输入的用户名
        var u=document.getElementById("inputEmail").value;
        //去数据库验证
        $.get("{:url('check')}",{"user":u},
            function(result){
if (result==1)
$("#tip").html("√").css("color","green");
else $("#tip").html("×").css("color","red");
        });

        //处理服务端的返回值，显示结果
    }
</script>
</head>

<div class="container">
	<section id="content">
		<form action="{:url('index')}" method="post">
			<h1>超级管理员登录</h1>
			<div>
				<input type="text" placeholder="用户名" name="a_name" id="a_name" onblur="checkuser()" />
			</div>
			<div>
				<input type="password" placeholder="密码" name="a_password" id="a_password" />
			</div>
			<div>
				<input type="text" id="verifycode" placeholder="验证码" name="verifycode">  
			</div>
			<div>
				<img src="{:url('show_captcha')}" alt="captcha" onclick="this.src=this.src+'?'" />
			</div>
			 <div class="">
				<span class="help-block u-errormessage" id="js-server-helpinfo">&nbsp;</span>			</div> 
			<div>
				<!-- <input type="submit" value="Log in" /> -->
				<input type="submit" value="登录" class="btn btn-primary" id="js-btn-login"/>
				<a href="#">忘记密码?</a>
				<!-- <a href="#">Register</a> -->
			</div>
		</form><!-- form -->
		
	</section><!-- content -->
</div>
<!-- container -->


</body>
</html>